package org.eiahe.hr.salary.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 调薪记录表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_salary_adjustment_record")
public class SalaryAdjustmentRecord extends BaseEntity {

    /**
     * 调薪记录ID
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    private String employeeNo;

    /**
     * 调薪次数
     */
    private Integer adjustmentCount;

    /**
     * 调薪时间
     */
    private Date adjustmentTime;

    /**
     * 调薪幅度
     */
    private BigDecimal adjustmentAmount;

    /**
     * 调薪比例
     */
    private BigDecimal adjustmentRate;

    /**
     * 调薪原因
     */
    private String adjustmentReason;

    /**
     * 原薪资
     */
    private BigDecimal originalSalary;

    /**
     * 新薪资
     */
    private BigDecimal newSalary;

    /**
     * 删除标志(0存在 1删除)
     */
    @TableLogic
    private String delFlag;

}